← Index
NYTProf Performance Profile   
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:51 2015

Filename(eval 82)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 12 statements in 17µs
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4, 5, 6
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
22216µs20µsCGI::::unescapeHTMLCGI::unescapeHTML
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 20µs (16+5) within CGI::unescapeHTML which was called 2 times, avg 10µs/call: # once (11µs+3µs) by CGI::header at line 895 of CGI.pm # once (4µs+2µs) by CGI::header at line 51 of (eval 81)[CGI.pm:932]
package CGI; sub unescapeHTML {
2 # hack to work around earlier hacks
32500ns push @_,$_[0] if @_==1 && $_[0] eq 'CGI';
422µs24µs my ($self,$string) = CGI::self_or_default(@_);
# spent 4µs making 2 calls to CGI::self_or_default, avg 2µs/call
52200ns return undef unless defined($string);
626µs2300ns my $latin = defined $self->{'.charset'} ? $self->{'.charset'} =~ /^(ISO-8859-1|WINDOWS-1252)$/i
# spent 300ns making 2 calls to CGI::CORE:match, avg 150ns/call
7 : 1;
8 # thanks to Randal Schwartz for the correct solution to this one
923µs2800ns $string=~ s[&([^\s&]*?);]{
# spent 800ns making 2 calls to CGI::CORE:subst, avg 400ns/call
10 local $_ = $1;
11 /^amp$/i ? "&" :
12 /^quot$/i ? '"' :
13 /^gt$/i ? ">" :
14 /^lt$/i ? "<" :
15 /^#(\d+)$/ && $latin ? chr($1) :
16 /^#x([0-9a-f]+)$/i && $latin ? chr(hex($1)) :
17 "&$_;"
18 }gex;
1924µs return $string;
20}
21
22;